package com.sskj.video;

public class CoordinatesConverter {

    public static String convertTo84Format(int latitude) {
        int actualDegree = latitude / (3600 * 100);
        int actualMinute = (latitude % (3600 * 100)) / (60 * 100);
        int actualSecond = latitude % (60 * 100);

        return actualDegree + "°" + actualMinute + "'" + actualSecond + "\"";
    }

    public static void main(String[] args) {
        int latitude = 11210028;
        String result = convertTo84Format(latitude);
        System.out.println(result);
    }
}
